package routines

import (
	"fmt"
	"os"
	"os/signal"
	"syscall"
)

func WaitExit() {
	sigs := make(chan os.Signal, 1)
	signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
	sig := <-sigs
	fmt.Println("application exit by signal: " + sig.String())
}
